package data.visitor;

import client.gui.roombox.RoomBoxModel;
import data.Data;
import data.content.visitor.UpdateRoomBoxModelContentVisitor;

public class UpdateModelDataVisitor extends DataVisitor<Void> {

  private final RoomBoxModel model_;
  
  public UpdateModelDataVisitor(RoomBoxModel model) {
    assert (model != null);
    model_ = model;
  }
  
  @Override
  public Void visit(Data data) {
    data.getContent().accept(new UpdateRoomBoxModelContentVisitor(model_));
    return null;
  }
  
}
